package com.btpn.infra.web.struts2.action;

import org.apache.struts2.convention.annotation.Action;
import org.apache.struts2.convention.annotation.ParentPackage;
import org.apache.struts2.convention.annotation.Result;
import org.apache.struts2.convention.annotation.Results;

import com.opensymphony.xwork2.ActionSupport;

@ParentPackage(value="custody")
@Results({
	@Result(name="success", type="redirectAction", params = {"actionName", "home"} )
})
public class CustodyAction extends ActionSupport {

	private static final long serialVersionUID = -308498971382667120L;

	public String execute() {
		return SUCCESS;
	}
	
	@Action(value = "/home", results = { @Result( name="success", location="t_home") })
	public String home() throws Exception {		
		return SUCCESS;
	}
	
//	@Action(value = "/404", results = { @Result( name="success", location="t_error_404") })
//	public String error404() throws Exception {		
//		return SUCCESS;
//	}
}
